<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>

<body>
    <!-- - `elem.children[0].previousSibling` 值一直都是 `null`，这个判定是不是真的？ -->

    <div>
        <ul>
            <li></li>
        </ul>
        <div></div>
    </div>
    <script>
        //children获得元素节点
        var div = document.querySelector('div');
        console.log(div);
        console.log(div.children[0]);
        console.log(div.children[0].previousSibling);//#text false
    </script>

</body>

</html>